package com.ha.garbage.service;

import com.ha.garbage.model.Result;
import com.ha.garbage.model.UserLoginVO;
import com.ha.garbage.model.UserPasswordDTO;
import com.ha.garbage.model.request.LoginRequest;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface userService {
    @GET("user/test1")
    Call<Result> getTest();
    @POST("user/login")
    Call<Result<UserLoginVO>> Login(@Body LoginRequest loginRequest);

    @POST("user/password")
    Call<Result> modifyPassword(@Body UserPasswordDTO userPasswordDTO,@Header("token") String authorization);

    @POST("user/point/{type}")
    Call<Result> setPoint(@Path("type")Integer type ,@Query("userId") Long userId,@Header("token") String token);

    @GET("user/point")
    Call<Result<Integer>> getPoint(@Query("userId") Long userId,@Header("token") String token);
}
